/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.tom.social.common.jade;

import jade.lang.acl.ACLMessage;

/**
 *
 * @author Tom
 */
public class ACLMessageUtils {

	public static String toString(ACLMessage msg) {
		StringBuffer buffer = new StringBuffer();

		buffer.append("id: " + msg.getConversationId() + " \n").
			append("performative: " + msg.getPerformative() + " \n").
			append("sender: " + msg.getSender().getName() + " \n").
			append("content: " + msg.getContent() + " \n");

		return buffer.toString();
	}
}
